import request from '@/utils/request'

// 查询采购入库列表
export function listStoreOrder(query) {
  return request({
    url: '/sale/storeOrder/list',
    method: 'get',
    params: query
  })
}

// 查询采购入库详细
export function getStoreOrder(id) {
  return request({
    url: '/sale/storeOrder/' + id,
    method: 'get'
  })
}

// 新增采购入库
export function addStoreOrder(data) {
  return request({
    url: '/sale/storeOrder',
    method: 'post',
    data: data
  })
}

// 修改采购入库
export function updateStoreOrder(data) {
  return request({
    url: '/sale/storeOrder',
    method: 'put',
    data: data
  })
}

// 删除采购入库
export function delStoreOrder(id) {
  return request({
    url: '/sale/storeOrder/' + id,
    method: 'delete'
  })
}
